<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>甘肃省皋兰县智慧交通AI视频巡检监控大屏</title>
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #0c1426 0%, #1a2332 50%, #0f1b2e 100%);
            color: #ffffff;
            overflow: hidden;
            height: 100vh;
        }

        .dashboard-container {
            width: 100vw;
            height: 100vh;
            padding: 10px;
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            grid-template-rows: 80px 260px 1fr;
            gap: 12px;
        }

        .mega-cards-row {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
        }

        .mega-card {
            background: linear-gradient(135deg, rgba(0, 150, 255, 0.15) 0%, rgba(0, 255, 150, 0.1) 50%, rgba(255, 107, 107, 0.1) 100%);
            border: 2px solid rgba(0, 255, 150, 0.3);
            border-radius: 15px;
            padding: 15px;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(15px);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .mega-card:hover {
            transform: translateY(-3px);
            border-color: rgba(0, 255, 150, 0.6);
            box-shadow: 0 15px 40px rgba(0, 255, 150, 0.2);
        }

        .mega-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #00d4ff, #00ff88, #ff6b6b);
            animation: pulse 2s infinite;
        }

        .mega-card-title {
            font-size: 1.3rem;
            font-weight: bold;
            color: #00ff88;
            text-align: center;
            margin-bottom: 15px;
            text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
            z-index: 10;
            position: relative;
        }

        .mega-metric {
            text-align: center;
            margin: 10px 0;
            z-index: 10;
            position: relative;
        }

        .mega-value {
            font-size: 2.8rem;
            font-weight: bold;
            background: linear-gradient(45deg, #00d4ff, #00ff88, #ff6b6b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from {
                filter: brightness(1);
            }

            to {
                filter: brightness(1.2);
            }
        }

        .mega-label {
            font-size: 1rem;
            color: #a0c4ff;
            margin-top: 5px;
            opacity: 0.9;
        }

        .mega-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 10px;
            z-index: 10;
            position: relative;
        }

        .mega-stat-item {
            text-align: center;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(0, 150, 255, 0.2);
        }

        .mega-stat-value {
            font-size: 1.4rem;
            font-weight: bold;
            color: #00d4ff;
        }

        .mega-stat-label {
            font-size: 0.8rem;
            color: #a0c4ff;
            margin-top: 3px;
        }

        .ai-visual {
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin: 15px 0;
            position: relative;
            z-index: 10;
        }

        .ai-node {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            background: linear-gradient(45deg, #ff6b6b, #00d4ff);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            font-weight: bold;
            color: #fff;
            position: relative;
            animation: ai-pulse 3s infinite;
        }

        @keyframes ai-pulse {

            0%,
            100% {
                box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
            }

            50% {
                box-shadow: 0 0 40px rgba(255, 107, 107, 0.8);
            }
        }

        .video-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin: 10px 0;
            z-index: 10;
            position: relative;
        }

        .video-item {
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid rgba(0, 255, 136, 0.5);
            border-radius: 8px;
            padding: 8px;
            text-align: center;
            font-size: 0.8rem;
            color: #00ff88;
            position: relative;
            overflow: hidden;
            animation: video-blink 2s infinite;
        }

        .video-item::before {
            content: '';
            position: absolute;
            top: 2px;
            right: 2px;
            width: 8px;
            height: 8px;
            background: #ff4444;
            border-radius: 50%;
            animation: record-blink 1s infinite;
        }

        .video-item.online::before {
            background: #00ff88;
        }

        @keyframes record-blink {

            0%,
            50% {
                opacity: 1;
            }

            51%,
            100% {
                opacity: 0.3;
            }
        }

        @keyframes video-blink {

            0%,
            100% {
                border-color: rgba(0, 255, 136, 0.3);
            }

            50% {
                border-color: rgba(0, 255, 136, 0.8);
            }
        }

        .monitor-wall {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            margin: 10px 0;
            z-index: 10;
            position: relative;
        }

        .monitor-screen {
            aspect-ratio: 16/9;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 30, 50, 0.8) 100%);
            border: 2px solid rgba(0, 212, 255, 0.4);
            border-radius: 6px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            color: #00d4ff;
        }

        .monitor-screen::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
            animation: scan-line 3s infinite;
        }

        @keyframes scan-line {
            0% {
                left: -100%;
            }

            100% {
                left: 100%;
            }
        }

        .monitor-screen.active {
            border-color: rgba(0, 255, 136, 0.6);
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
        }

        .monitor-screen.alert {
            border-color: rgba(255, 107, 107, 0.8);
            box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
            animation: alert-flash 1s infinite;
        }

        @keyframes alert-flash {

            0%,
            100% {
                background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 30, 50, 0.8) 100%);
            }

            50% {
                background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
            }
        }

        .camera-status {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 8px 0;
            padding: 6px 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            border-left: 3px solid #00d4ff;
        }

        .camera-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .camera-icon {
            width: 20px;
            height: 20px;
            background: linear-gradient(45deg, #00d4ff, #00ff88);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
        }

        .header {
            grid-column: 1 / -1;
            text-align: center;
            background: linear-gradient(90deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 255, 150, 0.1) 100%);
            border: 2px solid rgba(0, 150, 255, 0.3);
            border-radius: 15px;
            padding: 10px;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% {
                left: -100%;
            }

            100% {
                left: 100%;
            }
        }

        .header h1 {
            font-size: 2rem;
            font-weight: bold;
            background: linear-gradient(45deg, #00d4ff, #00ff88);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 5px;
        }

        .header .subtitle {
            font-size: 1rem;
            color: #a0c4ff;
            opacity: 0.8;
        }

        .card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
            border: 1px solid rgba(0, 150, 255, 0.2);
            border-radius: 12px;
            padding: 12px;
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 0;
        }

        .card:hover {
            border-color: rgba(0, 255, 150, 0.4);
            box-shadow: 0 0 30px rgba(0, 255, 150, 0.2);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, #00d4ff, #00ff88, #ff6b6b);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 0.5;
            }

            50% {
                opacity: 1;
            }
        }

        .card-title {
            font-size: 1.1rem;
            color: #00d4ff;
            margin-bottom: 15px;
            text-align: center;
            font-weight: bold;
        }

        .metric-value {
            font-size: 2rem;
            font-weight: bold;
            text-align: center;
            margin: 10px 0;
        }

        .metric-label {
            font-size: 0.9rem;
            color: #a0c4ff;
            text-align: center;
            opacity: 0.8;
        }

        .chart-container {
            height: 120px;
            margin-top: 8px;
            flex: 1;
            min-height: 100px;
        }

        .status-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
            animation: blink 1.5s infinite;
        }

        .status-online {
            background-color: #00ff88;
        }

        .status-warning {
            background-color: #ffaa00;
        }

        .status-offline {
            background-color: #ff4444;
        }

        @keyframes blink {

            0%,
            50% {
                opacity: 1;
            }

            51%,
            100% {
                opacity: 0.3;
            }
        }

        .alert-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 8px 0;
            padding: 8px;
            background: rgba(255, 107, 107, 0.1);
            border-left: 3px solid #ff6b6b;
            border-radius: 5px;
            font-size: 0.9rem;
        }

        .alert-time {
            color: #a0c4ff;
            font-size: 0.8rem;
        }

        .grid-left {
            display: grid;
            grid-template-rows: repeat(3, 1fr);
            gap: 12px;
            min-height: 0;
        }

        .grid-right {
            display: grid;
            grid-template-rows: repeat(3, 1fr);
            gap: 12px;
            min-height: 0;
        }

        .center-main {
            display: grid;
            grid-template-rows: 1fr 1fr;
            gap: 12px;
            min-height: 0;
        }

        .time-display {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 1.1rem;
            color: #00d4ff;
        }
    </style>
</head>

<body>
    <div class="dashboard-container">
        <div class="time-display" id="currentTime"></div>

        <div class="header">
            <h1>甘肃省皋兰县智慧交通AI视频巡检监控大屏</h1>
            <div class="subtitle">AI赋能 · 智能巡检 · 全天候监控</div>
        </div>

        <!-- 三个大气的统计卡片 -->
        <div class="mega-cards-row">
            <!-- AI视频分析总览 -->
            <div class="mega-card">
                <div class="mega-card-title">AI视频分析总览</div>
                <div class="mega-metric">
                    <div class="mega-value" id="aiAnalysisCount">2.8K</div>
                    <div class="mega-label">今日AI分析次数</div>
                </div>
                <div class="ai-visual">
                    <div class="ai-node">🎥</div>
                    <div class="ai-node">🧠</div>
                    <div class="ai-node">⚡</div>
                    <div class="ai-node">📊</div>
                </div>
                <div class="mega-stats">
                    <div class="mega-stat-item">
                        <div class="mega-stat-value" id="aiAccuracy">96.8</div>
                        <div class="mega-stat-label">% 识别准确率</div>
                    </div>
                    <div class="mega-stat-item">
                        <div class="mega-stat-value">24/7</div>
                        <div class="mega-stat-label">不间断分析</div>
                    </div>
                </div>
            </div>

            <!-- 智能巡检体系 -->
            <div class="mega-card">
                <div class="mega-card-title">智能巡检体系</div>
                <div class="mega-metric">
                    <div class="mega-value" id="patrolCoverage">98.5</div>
                    <div class="mega-label">% 巡检覆盖率</div>
                </div>
                <div class="chart-container" id="megaPatrolChart" style="height: 80px; margin: 10px 0;"></div>
                <div class="mega-stats">
                    <div class="mega-stat-item">
                        <div class="mega-stat-value" id="patrolPoints">156</div>
                        <div class="mega-stat-label">巡检点位</div>
                    </div>
                    <div class="mega-stat-item">
                        <div class="mega-stat-value">0.3</div>
                        <div class="mega-stat-label">秒响应时间</div>
                    </div>
                </div>
            </div>

            <!-- 事件检测预警 -->
            <div class="mega-card">
                <div class="mega-card-title">事件检测预警</div>
                <div class="mega-metric">
                    <div class="mega-value" id="eventDetection">99.2</div>
                    <div class="mega-label">% 事件检测率</div>
                </div>
                <div class="chart-container" id="megaEventChart" style="height: 80px; margin: 10px 0;"></div>
                <div class="mega-stats">
                    <div class="mega-stat-item">
                        <div class="mega-stat-value" id="todayEvents">23</div>
                        <div class="mega-stat-label">今日检测事件</div>
                    </div>
                    <div class="mega-stat-item">
                        <div class="mega-stat-value">15</div>
                        <div class="mega-stat-label">秒平均处理</div>
                    </div>
                </div>
            </div>
        </div>

        <div class="grid-left">
            <!-- 视频监控墙 -->
            <div class="card">
                <div class="card-title">视频监控墙</div>
                <div class="monitor-wall">
                    <div class="monitor-screen active">G312主干道</div>
                    <div class="monitor-screen active">县城路口</div>
                    <div class="monitor-screen alert">隧道入口</div>
                    <div class="monitor-screen active">桥梁监控</div>
                    <div class="monitor-screen active">客运站</div>
                    <div class="monitor-screen active">工业园区</div>
                </div>
                <div class="camera-status">
                    <div class="camera-info">
                        <div class="camera-icon">📹</div>
                        <span style="font-size: 0.9rem;">实时监控</span>
                    </div>
                    <div style="color: #00ff88; font-size: 0.9rem;">103/108在线</div>
                </div>
                <div class="metric-value" style="color: #00ff88;">95.4%</div>
                <div class="metric-label">监控覆盖率</div>
            </div>

            <!-- AI算法性能 -->
            <div class="card">
                <div class="card-title">AI算法性能</div>
                <div class="chart-container" id="aiPerformanceChart"></div>
                <div class="metric-value" style="color: #00d4ff;">0.2s</div>
                <div class="metric-label">平均分析耗时</div>
            </div>

            <!-- 视频存储状态 -->
            <div class="card">
                <div class="card-title">视频存储状态</div>
                <div class="chart-container" id="videoStorageChart"></div>
                <div class="metric-value" style="color: #ff6b6b;">8.5TB</div>
                <div class="metric-label">今日新增视频</div>
            </div>
        </div>

        <div class="center-main">
            <!-- GIS地图监控态势 -->
            <div class="card">
                <div class="card-title">GIS地图监控态势</div>
                <div class="chart-container" id="gisMonitorChart"></div>
            </div>

            <!-- 交通流量热力分析 -->
            <div class="card">
                <div class="card-title">交通流量热力分析</div>
                <div class="chart-container" id="trafficFlowChart"></div>
            </div>
        </div>

        <div class="grid-right">
            <!-- 实时告警信息 -->
            <div class="card">
                <div class="card-title">实时告警信息</div>
                <div class="alert-item">
                    <div>
                        <span style="color: #ff6b6b;">●</span>
                        <span>G312国道违停检测</span>
                    </div>
                    <div class="alert-time">14:23</div>
                </div>
                <div class="alert-item">
                    <div>
                        <span style="color: #ffaa00;">●</span>
                        <span>县城路口拥堵预警</span>
                    </div>
                    <div class="alert-time">14:18</div>
                </div>
                <div class="alert-item">
                    <div>
                        <span style="color: #ff6b6b;">●</span>
                        <span>桥梁异常行为识别</span>
                    </div>
                    <div class="alert-time">14:15</div>
                </div>
                <div class="metric-value" style="color: #ff6b6b;">8</div>
                <div class="metric-label">待处理告警</div>
            </div>

            <!-- 车辆识别统计 -->
            <div class="card">
                <div class="card-title">车辆识别统计</div>
                <div class="chart-container" id="vehicleRecognitionChart"></div>
                <div class="metric-value" style="color: #00d4ff;">15.2K</div>
                <div class="metric-label">今日识别车辆</div>
            </div>

            <!-- 视频AI分析监控 -->
            <div class="card">
                <div class="card-title">视频AI分析监控</div>
                <div class="video-grid">
                    <div class="video-item online">车牌识别</div>
                    <div class="video-item online">行为分析</div>
                    <div class="video-item online">流量统计</div>
                    <div class="video-item online">事件检测</div>
                </div>
                <div class="camera-status">
                    <div class="camera-info">
                        <div class="camera-icon">🤖</div>
                        <span style="font-size: 0.9rem;">AI分析中</span>
                    </div>
                    <div style="color: #00d4ff; font-size: 0.9rem;">2.8K次/小时</div>
                </div>
                <div class="chart-container" id="aiAnalysisChart"></div>
                <div class="metric-value" style="color: #00ff88;">96.8%</div>
                <div class="metric-label">AI识别准确率</div>
            </div>
        </div>
    </div>

    <script>
        // 更新时间显示
        function updateTime() {
            const now = new Date();
            const timeStr = now.toLocaleString('zh-CN', {
                year: 'numeric',
                month: '2-digit',
                day: '2-digit',
                hour: '2-digit',
                minute: '2-digit',
                second: '2-digit'
            });
            document.getElementById('currentTime').textContent = timeStr;
        }
        setInterval(updateTime, 1000);
        updateTime();

        // 大气卡片图表 - 智能巡检体系
        const megaPatrolChart = echarts.init(document.getElementById('megaPatrolChart'));
        const megaPatrolOption = {
            backgroundColor: 'transparent',
            grid: { top: 5, right: 5, bottom: 15, left: 25 },
            xAxis: {
                type: 'category',
                data: ['6h', '12h', '18h', '24h', '30h', '36h'],
                axisLine: { show: false },
                axisTick: { show: false },
                axisLabel: { color: '#a0c4ff', fontSize: 10 }
            },
            yAxis: {
                type: 'value',
                show: false
            },
            series: [{
                data: [95.2, 97.8, 98.1, 98.5, 98.9, 98.7],
                type: 'line',
                smooth: true,
                symbol: 'circle',
                symbolSize: 6,
                lineStyle: {
                    color: '#00d4ff',
                    width: 3,
                    shadowColor: 'rgba(0, 212, 255, 0.5)',
                    shadowBlur: 10
                },
                itemStyle: {
                    color: '#00d4ff',
                    shadowColor: 'rgba(0, 212, 255, 0.8)',
                    shadowBlur: 8
                },
                areaStyle: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                        { offset: 0, color: 'rgba(0, 212, 255, 0.4)' },
                        { offset: 1, color: 'rgba(0, 212, 255, 0.05)' }
                    ])
                }
            }]
        };
        megaPatrolChart.setOption(megaPatrolOption);

        // 大气卡片图表 - 事件检测预警
        const megaEventChart = echarts.init(document.getElementById('megaEventChart'));
        const megaEventOption = {
            backgroundColor: 'transparent',
            grid: { top: 5, right: 5, bottom: 15, left: 25 },
            xAxis: {
                type: 'category',
                data: ['拥堵', '违停', '事故', '异常', '超速'],
                axisLine: { show: false },
                axisTick: { show: false },
                axisLabel: { color: '#a0c4ff', fontSize: 9 }
            },
            yAxis: {
                type: 'value',
                show: false
            },
            series: [{
                data: [8, 12, 3, 5, 15],
                type: 'bar',
                barWidth: '60%',
                itemStyle: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                        { offset: 0, color: '#ff6b6b' },
                        { offset: 0.5, color: '#ffaa00' },
                        { offset: 1, color: '#00ff88' }
                    ]),
                    shadowColor: 'rgba(255, 107, 107, 0.5)',
                    shadowBlur: 10
                }
            }]
        };
        megaEventChart.setOption(megaEventOption);

        // AI算法性能图表
        const aiPerformanceChart = echarts.init(document.getElementById('aiPerformanceChart'));
        const aiPerformanceOption = {
            backgroundColor: 'transparent',
            grid: { top: 10, right: 10, bottom: 20, left: 30 },
            xAxis: {
                type: 'category',
                data: ['车辆识别', '行为分析', '事件检测', '流量统计'],
                axisLine: { lineStyle: { color: '#4a90e2' } },
                axisLabel: { color: '#a0c4ff', fontSize: 9 }
            },
            yAxis: {
                type: 'value',
                axisLine: { lineStyle: { color: '#4a90e2' } },
                axisLabel: { color: '#a0c4ff', fontSize: 10 },
                splitLine: { lineStyle: { color: 'rgba(74, 144, 226, 0.2)' } }
            },
            series: [{
                data: [0.15, 0.23, 0.18, 0.12],
                type: 'bar',
                itemStyle: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                        { offset: 0, color: '#00d4ff' },
                        { offset: 1, color: 'rgba(0, 212, 255, 0.3)' }
                    ])
                }
            }]
        };
        aiPerformanceChart.setOption(aiPerformanceOption);

        // 视频存储状态图表
        const videoStorageChart = echarts.init(document.getElementById('videoStorageChart'));
        const videoStorageOption = {
            backgroundColor: 'transparent',
            series: [{
                type: 'pie',
                radius: ['50%', '70%'],
                center: ['50%', '50%'],
                data: [
                    { value: 72, name: '已使用', itemStyle: { color: '#ff6b6b' } },
                    { value: 28, name: '剩余', itemStyle: { color: 'rgba(255,255,255,0.1)' } }
                ],
                label: { show: false },
                emphasis: { scale: false }
            }]
        };
        videoStorageChart.setOption(videoStorageOption);

        // GIS地图监控态势
        const gisMonitorChart = echarts.init(document.getElementById('gisMonitorChart'));
        const gisMonitorOption = {
            backgroundColor: 'transparent',
            tooltip: {
                trigger: 'item',
                formatter: function (params) {
                    if (params.seriesName === '皋兰县边界') {
                        return '皋兰县行政区域';
                    }
                    return params.name + '<br/>监控设备: ' + params.value[2] + '个<br/>状态: ' + (params.value[2] > 30 ? '正常运行' : params.value[2] > 15 ? '部分告警' : '需要维护');
                }
            },
            grid: { top: 10, right: 10, bottom: 10, left: 10 },
            xAxis: {
                type: 'value',
                min: 0,
                max: 100,
                show: false
            },
            yAxis: {
                type: 'value',
                min: 0,
                max: 100,
                show: false
            },
            series: [
                {
                    name: '皋兰县边界',
                    type: 'lines',
                    data: [
                        // 模拟皋兰县边界轮廓
                        { coords: [[15, 85], [25, 90], [35, 88], [45, 85], [55, 82], [65, 78], [75, 75], [85, 70]] },
                        { coords: [[85, 70], [88, 60], [85, 50], [82, 40], [78, 30], [72, 25], [65, 22], [55, 20]] },
                        { coords: [[55, 20], [45, 18], [35, 20], [25, 25], [18, 32], [15, 42], [12, 52], [15, 62]] },
                        { coords: [[15, 62], [18, 72], [15, 85]] }
                    ],
                    lineStyle: {
                        color: 'rgba(0, 255, 136, 0.6)',
                        width: 3,
                        type: 'solid'
                    },
                    effect: {
                        show: false
                    }
                },
                {
                    name: '主要道路',
                    type: 'lines',
                    data: [
                        // G312国道（横穿皋兰）
                        { coords: [[10, 50], [90, 45]] },
                        // 县城主干道
                        { coords: [[45, 20], [50, 80]] },
                        // 连接线
                        { coords: [[30, 35], [70, 60]] }
                    ],
                    lineStyle: {
                        color: 'rgba(0, 212, 255, 0.4)',
                        width: 2,
                        type: 'dashed'
                    }
                },
                {
                    name: '监控点位',
                    type: 'scatter',
                    data: [
                        { name: 'G312国道什川段', value: [25, 48, 45], itemStyle: { color: '#00ff88' } },
                        { name: '皋兰县城中心', value: [50, 55, 38], itemStyle: { color: '#00d4ff' } },
                        { name: '石洞寺路口', value: [35, 40, 32], itemStyle: { color: '#00d4ff' } },
                        { name: '黑石川乡路段', value: [70, 35, 28], itemStyle: { color: '#ffaa00' } },
                        { name: '水阜乡监控点', value: [65, 65, 25], itemStyle: { color: '#00d4ff' } },
                        { name: '九合镇路口', value: [40, 70, 22], itemStyle: { color: '#00ff88' } },
                        { name: '忠和镇监控', value: [75, 50, 18], itemStyle: { color: '#ffaa00' } },
                        { name: '什川古梨园', value: [20, 60, 15], itemStyle: { color: '#ff6b6b' } },
                        { name: '兰州北收费站', value: [60, 75, 35], itemStyle: { color: '#00d4ff' } },
                        { name: '皋兰工业园', value: [55, 30, 28], itemStyle: { color: '#00ff88' } }
                    ],
                    symbolSize: function (data) {
                        return Math.max(data[2] / 2.5, 8);
                    },
                    itemStyle: {
                        shadowBlur: 8,
                        shadowColor: function (params) {
                            return params.color;
                        }
                    }
                },
                {
                    name: '实时告警',
                    type: 'effectScatter',
                    data: [
                        { name: 'G312违停告警', value: [30, 47, 1] },
                        { name: '县城路口拥堵', value: [50, 55, 1] }
                    ],
                    symbolSize: 15,
                    itemStyle: {
                        color: '#ff6b6b'
                    },
                    rippleEffect: {
                        brushType: 'stroke',
                        scale: 2.5,
                        period: 2
                    }
                },
                {
                    name: '监控网络',
                    type: 'lines',
                    data: [
                        { coords: [[25, 48], [50, 55]] },
                        { coords: [[50, 55], [70, 35]] },
                        { coords: [[35, 40], [40, 70]] },
                        { coords: [[60, 75], [75, 50]] },
                        { coords: [[20, 60], [55, 30]] }
                    ],
                    lineStyle: {
                        color: 'rgba(0, 212, 255, 0.2)',
                        width: 1,
                        type: 'dotted'
                    },
                    effect: {
                        show: true,
                        period: 4,
                        trailLength: 0.05,
                        symbol: 'circle',
                        symbolSize: 3,
                        color: '#00d4ff'
                    }
                }
            ],
            graphic: [
                {
                    type: 'text',
                    left: 45,
                    top: 55,
                    style: {
                        text: '皋兰县城',
                        fill: '#00ff88',
                        fontSize: 12,
                        fontWeight: 'bold'
                    }
                },
                {
                    type: 'text',
                    left: 20,
                    top: 45,
                    style: {
                        text: 'G312国道',
                        fill: '#00d4ff',
                        fontSize: 10
                    }
                },
                {
                    type: 'text',
                    left: 15,
                    top: 58,
                    style: {
                        text: '什川古梨园',
                        fill: '#a0c4ff',
                        fontSize: 9
                    }
                },
                {
                    type: 'text',
                    left: 65,
                    top: 32,
                    style: {
                        text: '黑石川乡',
                        fill: '#a0c4ff',
                        fontSize: 9
                    }
                }
            ]
        };
        gisMonitorChart.setOption(gisMonitorOption);

        // 交通流量热力分析
        const trafficFlowChart = echarts.init(document.getElementById('trafficFlowChart'));
        const trafficFlowOption = {
            backgroundColor: 'transparent',
            tooltip: {
                trigger: 'axis',
                axisPointer: { type: 'cross' }
            },
            legend: {
                data: ['G312国道', '县城主干道', '乡镇道路'],
                textStyle: { color: '#a0c4ff' },
                top: 5
            },
            grid: { top: 35, right: 20, bottom: 30, left: 40 },
            xAxis: {
                type: 'category',
                data: ['06:00', '08:00', '10:00', '12:00', '14:00', '16:00', '18:00', '20:00'],
                axisLine: { lineStyle: { color: '#4a90e2' } },
                axisLabel: { color: '#a0c4ff', fontSize: 10 }
            },
            yAxis: {
                type: 'value',
                name: '车流量(辆/小时)',
                nameTextStyle: { color: '#a0c4ff', fontSize: 10 },
                axisLine: { lineStyle: { color: '#4a90e2' } },
                axisLabel: { color: '#a0c4ff', fontSize: 10 },
                splitLine: { lineStyle: { color: 'rgba(74, 144, 226, 0.2)' } }
            },
            series: [
                {
                    name: 'G312国道',
                    type: 'line',
                    data: [320, 580, 450, 680, 520, 750, 920, 650],
                    lineStyle: { color: '#00ff88', width: 3 },
                    itemStyle: { color: '#00ff88' },
                    areaStyle: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                            { offset: 0, color: 'rgba(0, 255, 136, 0.3)' },
                            { offset: 1, color: 'rgba(0, 255, 136, 0.05)' }
                        ])
                    }
                },
                {
                    name: '县城主干道',
                    type: 'line',
                    data: [180, 320, 280, 420, 380, 480, 650, 420],
                    lineStyle: { color: '#00d4ff', width: 3 },
                    itemStyle: { color: '#00d4ff' },
                    areaStyle: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                            { offset: 0, color: 'rgba(0, 212, 255, 0.3)' },
                            { offset: 1, color: 'rgba(0, 212, 255, 0.05)' }
                        ])
                    }
                },
                {
                    name: '乡镇道路',
                    type: 'line',
                    data: [80, 150, 120, 200, 160, 220, 280, 180],
                    lineStyle: { color: '#ffaa00', width: 2 },
                    itemStyle: { color: '#ffaa00' },
                    areaStyle: {
                        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                            { offset: 0, color: 'rgba(255, 170, 0, 0.3)' },
                            { offset: 1, color: 'rgba(255, 170, 0, 0.05)' }
                        ])
                    }
                }
            ]
        };
        trafficFlowChart.setOption(trafficFlowOption);

        // 智能分析热力图
        const analysisHeatmapChart = echarts.init(document.getElementById('analysisHeatmapChart'));
        const analysisHeatmapOption = {
            backgroundColor: 'transparent',
            tooltip: { trigger: 'item' },
            legend: {
                top: '5%',
                left: 'center',
                textStyle: { color: '#a0c4ff' }
            },
            series: [{
                name: '分析热点分布',
                type: 'pie',
                radius: ['30%', '60%'],
                center: ['50%', '60%'],
                data: [
                    { value: 35, name: '主干道监控', itemStyle: { color: '#00d4ff' } },
                    { value: 28, name: '路口监控', itemStyle: { color: '#00ff88' } },
                    { value: 20, name: '隧道监控', itemStyle: { color: '#ff6b6b' } },
                    { value: 17, name: '桥梁监控', itemStyle: { color: '#ffaa00' } }
                ],
                emphasis: {
                    itemStyle: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            }]
        };
        analysisHeatmapChart.setOption(analysisHeatmapOption);

        // 车辆识别统计
        const vehicleRecognitionChart = echarts.init(document.getElementById('vehicleRecognitionChart'));
        const vehicleRecognitionOption = {
            backgroundColor: 'transparent',
            grid: { top: 10, right: 10, bottom: 20, left: 30 },
            xAxis: {
                type: 'category',
                data: ['小车', '货车', '客车', '摩托', '其他'],
                axisLine: { lineStyle: { color: '#4a90e2' } },
                axisLabel: { color: '#a0c4ff', fontSize: 9 }
            },
            yAxis: {
                type: 'value',
                axisLine: { lineStyle: { color: '#4a90e2' } },
                axisLabel: { color: '#a0c4ff', fontSize: 10 },
                splitLine: { lineStyle: { color: 'rgba(74, 144, 226, 0.2)' } }
            },
            series: [{
                data: [8500, 3200, 1800, 1200, 500],
                type: 'bar',
                itemStyle: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                        { offset: 0, color: '#00d4ff' },
                        { offset: 1, color: 'rgba(0, 212, 255, 0.3)' }
                    ])
                }
            }]
        };
        vehicleRecognitionChart.setOption(vehicleRecognitionOption);

        // AI分析监控图表
        const aiAnalysisChart = echarts.init(document.getElementById('aiAnalysisChart'));
        const aiAnalysisOption = {
            backgroundColor: 'transparent',
            grid: { top: 5, right: 5, bottom: 15, left: 25 },
            xAxis: {
                type: 'category',
                data: ['车牌', '行为', '流量', '事件'],
                axisLine: { show: false },
                axisTick: { show: false },
                axisLabel: { color: '#a0c4ff', fontSize: 9 }
            },
            yAxis: {
                type: 'value',
                show: false
            },
            series: [{
                data: [95, 92, 98, 89],
                type: 'bar',
                barWidth: '60%',
                itemStyle: {
                    color: function (params) {
                        const colors = ['#00d4ff', '#00ff88', '#ffaa00', '#ff6b6b'];
                        return colors[params.dataIndex];
                    },
                    shadowColor: 'rgba(0, 212, 255, 0.5)',
                    shadowBlur: 8
                }
            }]
        };
        aiAnalysisChart.setOption(aiAnalysisOption);

        // 模拟数据更新
        setInterval(function () {
            // 更新大气卡片数据
            const aiAnalysis = (2.8 + Math.random() * 0.5).toFixed(1);
            const aiAccuracy = (96.8 + Math.random() * 1.0).toFixed(1);
            const patrolCoverage = (98.5 + Math.random() * 0.5).toFixed(1);
            const patrolPoints = Math.floor(156 + Math.random() * 10);
            const eventDetection = (99.2 + Math.random() * 0.5).toFixed(1);
            const todayEvents = Math.floor(23 + Math.random() * 10);

            document.getElementById('aiAnalysisCount').textContent = aiAnalysis + 'K';
            document.getElementById('aiAccuracy').textContent = aiAccuracy;
            document.getElementById('patrolCoverage').textContent = patrolCoverage;
            document.getElementById('patrolPoints').textContent = patrolPoints;
            document.getElementById('eventDetection').textContent = eventDetection;
            document.getElementById('todayEvents').textContent = todayEvents;
        }, 3000);

        // 响应式处理
        window.addEventListener('resize', function () {
            megaPatrolChart.resize();
            megaEventChart.resize();
            aiPerformanceChart.resize();
            videoStorageChart.resize();
            gisMonitorChart.resize();
            trafficFlowChart.resize();
            analysisHeatmapChart.resize();
            vehicleRecognitionChart.resize();
            aiAnalysisChart.resize();
        });
    </script>
</body>

</html>